Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: merge new token managers #255

Closed

Conversation

Foivos
Copy link
Contributor

@Foivos Foivos commented Mar 25, 2024

No description provided.

milapsheth and others added 11 commits December 17, 2023 19:00
* fix: add missing imports to factory interface

* update docs
* ci: use env var setter in gh actions (#241)

* fix: add missing imports to factory interface

* ci: use env var setter in gh actions

* ci: improve var reference in workflow (#242)

* test: action

* direct trigger

* rename

* improve var reference
* added new token managers that have the mint/burn permissions.

* added a few tests

* a few more tests

* removed mint/burn from legacy

* rename INTERCHAIN_TOKEN to INTERCHAIN_TOKEN_MINT_BURN

* remove unused import and prettier

* some more renaming

* rever

* added some docstrings

* prettier

* chore: restrict custom token manager deployments (#3)

* some styling

* fixed revert

* fixed some docs

* bump package version

* restrict remote token manager deployment

* rename MINT_BURN_FROM to CUSTOM_MINT_BURN_FROM

* prettier

* add comments to TokenManagerType

* rename token manager types

* update docs

* refactor(TokenManager): simplification (#4)

* refactor(TokenManager): simplification

* refactor(TokenManager): unused import

* update doc

---------

Co-authored-by: Milap Sheth <[email protected]>
Co-authored-by: re1ro <[email protected]>
@Foivos Foivos requested a review from a team as a code owner March 25, 2024 14:41
@codecov-commenter
Copy link

codecov-commenter commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.65%. Comparing base (672b48d) to head (05226cb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #255      +/-   ##
==========================================
- Coverage   98.70%   97.65%   -1.06%     
==========================================
  Files          16       16              
  Lines         541      554      +13     
  Branches      107      111       +4     
==========================================
+ Hits          534      541       +7     
- Misses          2        5       +3     
- Partials        5        8       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

contracts/interfaces/ITokenManagerType.sol Outdated Show resolved Hide resolved
Comment on lines -43 to +45
function giveToken(
uint256 tokenManagerType,
address tokenAddress,
address tokenManager,
address to,
uint256 amount
) external payable returns (uint256) {
function giveToken(bytes32 tokenId, address to, uint256 amount) external payable returns (uint256, address) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make these new changes in a separate PR? This PR should be a simple cherry pick of the fix. Makes it easier to audit as well.

Was the issue bytecode size? if so, you can point this PR on the other PR that adds the bytecode fix but keep the token handler refactor separate?

@Foivos Foivos changed the base branch from main to feat/move-more-to-token-handler April 1, 2024 09:32
@Foivos Foivos closed this Apr 1, 2024
@Foivos Foivos deleted the feat/merge-new-token-managers branch April 1, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants